package org.aplikator.client.widgets;

import java.io.Serializable;

import org.aplikator.client.descriptor.PropertyDTO;

public abstract class DataFieldBase<T extends Serializable> extends PaneWidget {

    private PropertyDTO<T> property;

    protected boolean dirty;

    public DataFieldBase(String label, PropertyDTO<T> property, boolean framed, boolean vertical) {
        super(label, framed, vertical);
        this.property = property;
    }

    public PropertyDTO<T> getProperty() {
        return property;
    }

    public void setDirty(boolean dirty){
        this.dirty=dirty;
    }

    public boolean isDirty(){
        return dirty;
    }

}
